package com.ztesoft.web.common.db.arg;

import java.util.*;
import org.apache.commons.lang.*;

public class DmArg {
    private String pk_name = "dm_detail_id";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<DmCriteria> oredCriteria;

    public String getGroupByClause() {
		return groupByClause;
	}

	public String getColumns() {
		return columns;
	}

	public String getCountsql1() {
		return countsql1;
	}

	public String getCountsql2() {
		return countsql2;
	}

	public void setOredCriteria(List<DmCriteria> oredCriteria) {
		this.oredCriteria = oredCriteria;
	}

	public DmArg() {
        oredCriteria = new ArrayList<DmCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<DmCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(DmCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public DmCriteria or() {
    	DmCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DmCriteria createCriteria() {
    	DmCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected DmCriteria createCriteriaInternal() {
    	DmCriteria criteria = new DmCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<DmCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<DmCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<DmCriterion> getAllCriteria() {
            return criteria;
        }

        public List<DmCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new DmCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new DmCriterion(condition, value1, value2));
        }

        public DmCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (DmCriteria) this;
        }
        public DmCriteria andDmDetailIdIsNull() {
            addCriterion("dm_detail_id is null");
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdIsNotNull() {
            addCriterion("dm_detail_id is not null");
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdEqualTo(Long value) {
            addCriterion("dm_detail_id =", value, "dm_detail_id");
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdNotEqualTo(Long value) {
            addCriterion("dm_detail_id <>", value, "dm_detail_id");
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdGreaterThan(Long value) {
            addCriterion("dm_detail_id >", value, "dm_detail_id");
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdGreaterThanOrEqualTo(Long value) {
            addCriterion("dm_detail_id >=", value, "dm_detail_id");
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdLessThan(Long value) {
            addCriterion("dm_detail_id <", value, "dm_detail_id");
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdLessThanOrEqualTo(Long value) {
            addCriterion("dm_detail_id <=", value, "dm_detail_id");
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdLike(Long value) {
            addCriterion("dm_detail_id like ", value, "dm_detail_id", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdNotLike(Long value) {
            addCriterion("dm_detail_id  not like ", value, "dm_detail_id", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdLeftLike(Long value) {
            addCriterion("dm_detail_id like ", value, "dm_detail_id", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdNotLeftLike(Long value) {
            addCriterion("dm_detail_id  not like ", value, "dm_detail_id", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdRightLike(Long value) {
            addCriterion("dm_detail_id like ", value, "dm_detail_id", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdNotRightLike(Long value) {
            addCriterion("dm_detail_id  not like ", value, "dm_detail_id", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdIn(List<Long> values) {
            addCriterion("dm_detail_id  in ", values, "dm_detail_id");
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdNotIn(List<Long> values) {
            addCriterion("dm_detail_id not in ", values, "dm_detail_id");
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdBetween(Long value1, Long value2) {
            addCriterion("dm_detail_id between ", value1, value2, "dm_detail_id");
            return (DmCriteria) this;
        }

        public DmCriteria andDmDetailIdNotBetween(Long value1, Long value2) {
            addCriterion("dm_detail_id not between ", value1, value2, "dm_detail_id");
            return (DmCriteria) this;
        }
        public DmCriteria andDmStrategyIdIsNull() {
            addCriterion("DM_STRATEGY_ID is null");
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdIsNotNull() {
            addCriterion("DM_STRATEGY_ID is not null");
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdEqualTo(Integer value) {
            addCriterion("DM_STRATEGY_ID =", value, "DM_STRATEGY_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdNotEqualTo(Integer value) {
            addCriterion("DM_STRATEGY_ID <>", value, "DM_STRATEGY_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdGreaterThan(Integer value) {
            addCriterion("DM_STRATEGY_ID >", value, "DM_STRATEGY_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DM_STRATEGY_ID >=", value, "DM_STRATEGY_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdLessThan(Integer value) {
            addCriterion("DM_STRATEGY_ID <", value, "DM_STRATEGY_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdLessThanOrEqualTo(Integer value) {
            addCriterion("DM_STRATEGY_ID <=", value, "DM_STRATEGY_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdLike(Integer value) {
            addCriterion("DM_STRATEGY_ID like ", value, "DM_STRATEGY_ID", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdNotLike(Integer value) {
            addCriterion("DM_STRATEGY_ID  not like ", value, "DM_STRATEGY_ID", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdLeftLike(Integer value) {
            addCriterion("DM_STRATEGY_ID like ", value, "DM_STRATEGY_ID", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdNotLeftLike(Integer value) {
            addCriterion("DM_STRATEGY_ID  not like ", value, "DM_STRATEGY_ID", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdRightLike(Integer value) {
            addCriterion("DM_STRATEGY_ID like ", value, "DM_STRATEGY_ID", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdNotRightLike(Integer value) {
            addCriterion("DM_STRATEGY_ID  not like ", value, "DM_STRATEGY_ID", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdIn(List<Integer> values) {
            addCriterion("DM_STRATEGY_ID  in ", values, "DM_STRATEGY_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdNotIn(List<Integer> values) {
            addCriterion("DM_STRATEGY_ID not in ", values, "DM_STRATEGY_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdBetween(Integer value1, Integer value2) {
            addCriterion("DM_STRATEGY_ID between ", value1, value2, "DM_STRATEGY_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmStrategyIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DM_STRATEGY_ID not between ", value1, value2, "DM_STRATEGY_ID");
            return (DmCriteria) this;
        }
        public DmCriteria andDmTaskIdIsNull() {
            addCriterion("DM_TASK_ID is null");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdIsNotNull() {
            addCriterion("DM_TASK_ID is not null");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdEqualTo(Integer value) {
            addCriterion("DM_TASK_ID =", value, "DM_TASK_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdNotEqualTo(Integer value) {
            addCriterion("DM_TASK_ID <>", value, "DM_TASK_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdGreaterThan(Integer value) {
            addCriterion("DM_TASK_ID >", value, "DM_TASK_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DM_TASK_ID >=", value, "DM_TASK_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdLessThan(Integer value) {
            addCriterion("DM_TASK_ID <", value, "DM_TASK_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdLessThanOrEqualTo(Integer value) {
            addCriterion("DM_TASK_ID <=", value, "DM_TASK_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdLike(Integer value) {
            addCriterion("DM_TASK_ID like ", value, "DM_TASK_ID", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdNotLike(Integer value) {
            addCriterion("DM_TASK_ID  not like ", value, "DM_TASK_ID", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdLeftLike(Integer value) {
            addCriterion("DM_TASK_ID like ", value, "DM_TASK_ID", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdNotLeftLike(Integer value) {
            addCriterion("DM_TASK_ID  not like ", value, "DM_TASK_ID", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdRightLike(Integer value) {
            addCriterion("DM_TASK_ID like ", value, "DM_TASK_ID", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdNotRightLike(Integer value) {
            addCriterion("DM_TASK_ID  not like ", value, "DM_TASK_ID", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdIn(List<Integer> values) {
            addCriterion("DM_TASK_ID  in ", values, "DM_TASK_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdNotIn(List<Integer> values) {
            addCriterion("DM_TASK_ID not in ", values, "DM_TASK_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdBetween(Integer value1, Integer value2) {
            addCriterion("DM_TASK_ID between ", value1, value2, "DM_TASK_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTaskIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DM_TASK_ID not between ", value1, value2, "DM_TASK_ID");
            return (DmCriteria) this;
        }
        public DmCriteria andDmObjectNameIsNull() {
            addCriterion("DM_OBJECT_NAME is null");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameIsNotNull() {
            addCriterion("DM_OBJECT_NAME is not null");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameEqualTo(String value) {
            addCriterion("DM_OBJECT_NAME =", value, "DM_OBJECT_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameNotEqualTo(String value) {
            addCriterion("DM_OBJECT_NAME <>", value, "DM_OBJECT_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameGreaterThan(String value) {
            addCriterion("DM_OBJECT_NAME >", value, "DM_OBJECT_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameGreaterThanOrEqualTo(String value) {
            addCriterion("DM_OBJECT_NAME >=", value, "DM_OBJECT_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameLessThan(String value) {
            addCriterion("DM_OBJECT_NAME <", value, "DM_OBJECT_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameLessThanOrEqualTo(String value) {
            addCriterion("DM_OBJECT_NAME <=", value, "DM_OBJECT_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameLike(String value) {
            addCriterion("DM_OBJECT_NAME like ", value, "DM_OBJECT_NAME", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameNotLike(String value) {
            addCriterion("DM_OBJECT_NAME  not like ", value, "DM_OBJECT_NAME", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameLeftLike(String value) {
            addCriterion("DM_OBJECT_NAME like ", value, "DM_OBJECT_NAME", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameNotLeftLike(String value) {
            addCriterion("DM_OBJECT_NAME  not like ", value, "DM_OBJECT_NAME", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameRightLike(String value) {
            addCriterion("DM_OBJECT_NAME like ", value, "DM_OBJECT_NAME", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameNotRightLike(String value) {
            addCriterion("DM_OBJECT_NAME  not like ", value, "DM_OBJECT_NAME", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameIn(List<String> values) {
            addCriterion("DM_OBJECT_NAME  in ", values, "DM_OBJECT_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameNotIn(List<String> values) {
            addCriterion("DM_OBJECT_NAME not in ", values, "DM_OBJECT_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameBetween(String value1, String value2) {
            addCriterion("DM_OBJECT_NAME between ", value1, value2, "DM_OBJECT_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectNameNotBetween(String value1, String value2) {
            addCriterion("DM_OBJECT_NAME not between ", value1, value2, "DM_OBJECT_NAME");
            return (DmCriteria) this;
        }
        public DmCriteria andDmObjectKeyNameIsNull() {
            addCriterion("DM_OBJECT_KEY_NAME is null");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameIsNotNull() {
            addCriterion("DM_OBJECT_KEY_NAME is not null");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameEqualTo(String value) {
            addCriterion("DM_OBJECT_KEY_NAME =", value, "DM_OBJECT_KEY_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameNotEqualTo(String value) {
            addCriterion("DM_OBJECT_KEY_NAME <>", value, "DM_OBJECT_KEY_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameGreaterThan(String value) {
            addCriterion("DM_OBJECT_KEY_NAME >", value, "DM_OBJECT_KEY_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameGreaterThanOrEqualTo(String value) {
            addCriterion("DM_OBJECT_KEY_NAME >=", value, "DM_OBJECT_KEY_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameLessThan(String value) {
            addCriterion("DM_OBJECT_KEY_NAME <", value, "DM_OBJECT_KEY_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameLessThanOrEqualTo(String value) {
            addCriterion("DM_OBJECT_KEY_NAME <=", value, "DM_OBJECT_KEY_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameLike(String value) {
            addCriterion("DM_OBJECT_KEY_NAME like ", value, "DM_OBJECT_KEY_NAME", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameNotLike(String value) {
            addCriterion("DM_OBJECT_KEY_NAME  not like ", value, "DM_OBJECT_KEY_NAME", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameLeftLike(String value) {
            addCriterion("DM_OBJECT_KEY_NAME like ", value, "DM_OBJECT_KEY_NAME", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameNotLeftLike(String value) {
            addCriterion("DM_OBJECT_KEY_NAME  not like ", value, "DM_OBJECT_KEY_NAME", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameRightLike(String value) {
            addCriterion("DM_OBJECT_KEY_NAME like ", value, "DM_OBJECT_KEY_NAME", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameNotRightLike(String value) {
            addCriterion("DM_OBJECT_KEY_NAME  not like ", value, "DM_OBJECT_KEY_NAME", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameIn(List<String> values) {
            addCriterion("DM_OBJECT_KEY_NAME  in ", values, "DM_OBJECT_KEY_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameNotIn(List<String> values) {
            addCriterion("DM_OBJECT_KEY_NAME not in ", values, "DM_OBJECT_KEY_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameBetween(String value1, String value2) {
            addCriterion("DM_OBJECT_KEY_NAME between ", value1, value2, "DM_OBJECT_KEY_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyNameNotBetween(String value1, String value2) {
            addCriterion("DM_OBJECT_KEY_NAME not between ", value1, value2, "DM_OBJECT_KEY_NAME");
            return (DmCriteria) this;
        }
        public DmCriteria andDmObjectKeyValueIsNull() {
            addCriterion("DM_OBJECT_KEY_VALUE is null");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueIsNotNull() {
            addCriterion("DM_OBJECT_KEY_VALUE is not null");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueEqualTo(String value) {
            addCriterion("DM_OBJECT_KEY_VALUE =", value, "DM_OBJECT_KEY_VALUE");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueNotEqualTo(String value) {
            addCriterion("DM_OBJECT_KEY_VALUE <>", value, "DM_OBJECT_KEY_VALUE");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueGreaterThan(String value) {
            addCriterion("DM_OBJECT_KEY_VALUE >", value, "DM_OBJECT_KEY_VALUE");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueGreaterThanOrEqualTo(String value) {
            addCriterion("DM_OBJECT_KEY_VALUE >=", value, "DM_OBJECT_KEY_VALUE");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueLessThan(String value) {
            addCriterion("DM_OBJECT_KEY_VALUE <", value, "DM_OBJECT_KEY_VALUE");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueLessThanOrEqualTo(String value) {
            addCriterion("DM_OBJECT_KEY_VALUE <=", value, "DM_OBJECT_KEY_VALUE");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueLike(String value) {
            addCriterion("DM_OBJECT_KEY_VALUE like ", value, "DM_OBJECT_KEY_VALUE", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueNotLike(String value) {
            addCriterion("DM_OBJECT_KEY_VALUE  not like ", value, "DM_OBJECT_KEY_VALUE", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueLeftLike(String value) {
            addCriterion("DM_OBJECT_KEY_VALUE like ", value, "DM_OBJECT_KEY_VALUE", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueNotLeftLike(String value) {
            addCriterion("DM_OBJECT_KEY_VALUE  not like ", value, "DM_OBJECT_KEY_VALUE", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueRightLike(String value) {
            addCriterion("DM_OBJECT_KEY_VALUE like ", value, "DM_OBJECT_KEY_VALUE", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueNotRightLike(String value) {
            addCriterion("DM_OBJECT_KEY_VALUE  not like ", value, "DM_OBJECT_KEY_VALUE", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueIn(List<String> values) {
            addCriterion("DM_OBJECT_KEY_VALUE  in ", values, "DM_OBJECT_KEY_VALUE");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueNotIn(List<String> values) {
            addCriterion("DM_OBJECT_KEY_VALUE not in ", values, "DM_OBJECT_KEY_VALUE");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueBetween(String value1, String value2) {
            addCriterion("DM_OBJECT_KEY_VALUE between ", value1, value2, "DM_OBJECT_KEY_VALUE");
            return (DmCriteria) this;
        }

        public DmCriteria andDmObjectKeyValueNotBetween(String value1, String value2) {
            addCriterion("DM_OBJECT_KEY_VALUE not between ", value1, value2, "DM_OBJECT_KEY_VALUE");
            return (DmCriteria) this;
        }
        public DmCriteria andCreateDateIsNull() {
            addCriterion("CREATE_DATE is null");
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateIsNotNull() {
            addCriterion("CREATE_DATE is not null");
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateEqualTo(String value) {
            addCriterion("CREATE_DATE =", value, "CREATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateNotEqualTo(String value) {
            addCriterion("CREATE_DATE <>", value, "CREATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateGreaterThan(String value) {
            addCriterion("CREATE_DATE >", value, "CREATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateGreaterThanOrEqualTo(String value) {
            addCriterion("CREATE_DATE >=", value, "CREATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateLessThan(String value) {
            addCriterion("CREATE_DATE <", value, "CREATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateLessThanOrEqualTo(String value) {
            addCriterion("CREATE_DATE <=", value, "CREATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateNotLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateLeftLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateNotLeftLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateRightLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateNotRightLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateIn(List<String> values) {
            addCriterion("CREATE_DATE  in ", values, "CREATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateNotIn(List<String> values) {
            addCriterion("CREATE_DATE not in ", values, "CREATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateBetween(String value1, String value2) {
            addCriterion("CREATE_DATE between ", value1, value2, "CREATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andCreateDateNotBetween(String value1, String value2) {
            addCriterion("CREATE_DATE not between ", value1, value2, "CREATE_DATE");
            return (DmCriteria) this;
        }
        public DmCriteria andRecordCountIsNull() {
            addCriterion("RECORD_COUNT is null");
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountIsNotNull() {
            addCriterion("RECORD_COUNT is not null");
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountEqualTo(Integer value) {
            addCriterion("RECORD_COUNT =", value, "RECORD_COUNT");
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountNotEqualTo(Integer value) {
            addCriterion("RECORD_COUNT <>", value, "RECORD_COUNT");
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountGreaterThan(Integer value) {
            addCriterion("RECORD_COUNT >", value, "RECORD_COUNT");
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("RECORD_COUNT >=", value, "RECORD_COUNT");
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountLessThan(Integer value) {
            addCriterion("RECORD_COUNT <", value, "RECORD_COUNT");
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountLessThanOrEqualTo(Integer value) {
            addCriterion("RECORD_COUNT <=", value, "RECORD_COUNT");
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountLike(Integer value) {
            addCriterion("RECORD_COUNT like ", value, "RECORD_COUNT", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountNotLike(Integer value) {
            addCriterion("RECORD_COUNT  not like ", value, "RECORD_COUNT", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountLeftLike(Integer value) {
            addCriterion("RECORD_COUNT like ", value, "RECORD_COUNT", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountNotLeftLike(Integer value) {
            addCriterion("RECORD_COUNT  not like ", value, "RECORD_COUNT", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountRightLike(Integer value) {
            addCriterion("RECORD_COUNT like ", value, "RECORD_COUNT", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountNotRightLike(Integer value) {
            addCriterion("RECORD_COUNT  not like ", value, "RECORD_COUNT", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountIn(List<Integer> values) {
            addCriterion("RECORD_COUNT  in ", values, "RECORD_COUNT");
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountNotIn(List<Integer> values) {
            addCriterion("RECORD_COUNT not in ", values, "RECORD_COUNT");
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountBetween(Integer value1, Integer value2) {
            addCriterion("RECORD_COUNT between ", value1, value2, "RECORD_COUNT");
            return (DmCriteria) this;
        }

        public DmCriteria andRecordCountNotBetween(Integer value1, Integer value2) {
            addCriterion("RECORD_COUNT not between ", value1, value2, "RECORD_COUNT");
            return (DmCriteria) this;
        }
        public DmCriteria andStateIsNull() {
            addCriterion("STATE is null");
            return (DmCriteria) this;
        }

        public DmCriteria andStateIsNotNull() {
            addCriterion("STATE is not null");
            return (DmCriteria) this;
        }

        public DmCriteria andStateEqualTo(String value) {
            addCriterion("STATE =", value, "STATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateNotEqualTo(String value) {
            addCriterion("STATE <>", value, "STATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateGreaterThan(String value) {
            addCriterion("STATE >", value, "STATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE >=", value, "STATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateLessThan(String value) {
            addCriterion("STATE <", value, "STATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateLessThanOrEqualTo(String value) {
            addCriterion("STATE <=", value, "STATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateLike(String value) {
            addCriterion("STATE like ", value, "STATE", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andStateNotLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andStateLeftLike(String value) {
            addCriterion("STATE like ", value, "STATE", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andStateNotLeftLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andStateRightLike(String value) {
            addCriterion("STATE like ", value, "STATE", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andStateNotRightLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andStateIn(List<String> values) {
            addCriterion("STATE  in ", values, "STATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateNotIn(List<String> values) {
            addCriterion("STATE not in ", values, "STATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateBetween(String value1, String value2) {
            addCriterion("STATE between ", value1, value2, "STATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateNotBetween(String value1, String value2) {
            addCriterion("STATE not between ", value1, value2, "STATE");
            return (DmCriteria) this;
        }
        public DmCriteria andStateDateIsNull() {
            addCriterion("STATE_DATE is null");
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateIsNotNull() {
            addCriterion("STATE_DATE is not null");
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateEqualTo(String value) {
            addCriterion("STATE_DATE =", value, "STATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateNotEqualTo(String value) {
            addCriterion("STATE_DATE <>", value, "STATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateGreaterThan(String value) {
            addCriterion("STATE_DATE >", value, "STATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE_DATE >=", value, "STATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateLessThan(String value) {
            addCriterion("STATE_DATE <", value, "STATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateLessThanOrEqualTo(String value) {
            addCriterion("STATE_DATE <=", value, "STATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateNotLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateLeftLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateNotLeftLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateRightLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateNotRightLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateIn(List<String> values) {
            addCriterion("STATE_DATE  in ", values, "STATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateNotIn(List<String> values) {
            addCriterion("STATE_DATE not in ", values, "STATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateBetween(String value1, String value2) {
            addCriterion("STATE_DATE between ", value1, value2, "STATE_DATE");
            return (DmCriteria) this;
        }

        public DmCriteria andStateDateNotBetween(String value1, String value2) {
            addCriterion("STATE_DATE not between ", value1, value2, "STATE_DATE");
            return (DmCriteria) this;
        }
        public DmCriteria andErrorDescIsNull() {
            addCriterion("ERROR_DESC is null");
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescIsNotNull() {
            addCriterion("ERROR_DESC is not null");
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescEqualTo(String value) {
            addCriterion("ERROR_DESC =", value, "ERROR_DESC");
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescNotEqualTo(String value) {
            addCriterion("ERROR_DESC <>", value, "ERROR_DESC");
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescGreaterThan(String value) {
            addCriterion("ERROR_DESC >", value, "ERROR_DESC");
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescGreaterThanOrEqualTo(String value) {
            addCriterion("ERROR_DESC >=", value, "ERROR_DESC");
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescLessThan(String value) {
            addCriterion("ERROR_DESC <", value, "ERROR_DESC");
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescLessThanOrEqualTo(String value) {
            addCriterion("ERROR_DESC <=", value, "ERROR_DESC");
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescLike(String value) {
            addCriterion("ERROR_DESC like ", value, "ERROR_DESC", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescNotLike(String value) {
            addCriterion("ERROR_DESC  not like ", value, "ERROR_DESC", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescLeftLike(String value) {
            addCriterion("ERROR_DESC like ", value, "ERROR_DESC", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescNotLeftLike(String value) {
            addCriterion("ERROR_DESC  not like ", value, "ERROR_DESC", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescRightLike(String value) {
            addCriterion("ERROR_DESC like ", value, "ERROR_DESC", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescNotRightLike(String value) {
            addCriterion("ERROR_DESC  not like ", value, "ERROR_DESC", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescIn(List<String> values) {
            addCriterion("ERROR_DESC  in ", values, "ERROR_DESC");
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescNotIn(List<String> values) {
            addCriterion("ERROR_DESC not in ", values, "ERROR_DESC");
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescBetween(String value1, String value2) {
            addCriterion("ERROR_DESC between ", value1, value2, "ERROR_DESC");
            return (DmCriteria) this;
        }

        public DmCriteria andErrorDescNotBetween(String value1, String value2) {
            addCriterion("ERROR_DESC not between ", value1, value2, "ERROR_DESC");
            return (DmCriteria) this;
        }
        public DmCriteria andParentDetailIdIsNull() {
            addCriterion("PARENT_DETAIL_ID is null");
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdIsNotNull() {
            addCriterion("PARENT_DETAIL_ID is not null");
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdEqualTo(Integer value) {
            addCriterion("PARENT_DETAIL_ID =", value, "PARENT_DETAIL_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdNotEqualTo(Integer value) {
            addCriterion("PARENT_DETAIL_ID <>", value, "PARENT_DETAIL_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdGreaterThan(Integer value) {
            addCriterion("PARENT_DETAIL_ID >", value, "PARENT_DETAIL_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("PARENT_DETAIL_ID >=", value, "PARENT_DETAIL_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdLessThan(Integer value) {
            addCriterion("PARENT_DETAIL_ID <", value, "PARENT_DETAIL_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdLessThanOrEqualTo(Integer value) {
            addCriterion("PARENT_DETAIL_ID <=", value, "PARENT_DETAIL_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdLike(Integer value) {
            addCriterion("PARENT_DETAIL_ID like ", value, "PARENT_DETAIL_ID", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdNotLike(Integer value) {
            addCriterion("PARENT_DETAIL_ID  not like ", value, "PARENT_DETAIL_ID", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdLeftLike(Integer value) {
            addCriterion("PARENT_DETAIL_ID like ", value, "PARENT_DETAIL_ID", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdNotLeftLike(Integer value) {
            addCriterion("PARENT_DETAIL_ID  not like ", value, "PARENT_DETAIL_ID", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdRightLike(Integer value) {
            addCriterion("PARENT_DETAIL_ID like ", value, "PARENT_DETAIL_ID", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdNotRightLike(Integer value) {
            addCriterion("PARENT_DETAIL_ID  not like ", value, "PARENT_DETAIL_ID", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdIn(List<Integer> values) {
            addCriterion("PARENT_DETAIL_ID  in ", values, "PARENT_DETAIL_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdNotIn(List<Integer> values) {
            addCriterion("PARENT_DETAIL_ID not in ", values, "PARENT_DETAIL_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdBetween(Integer value1, Integer value2) {
            addCriterion("PARENT_DETAIL_ID between ", value1, value2, "PARENT_DETAIL_ID");
            return (DmCriteria) this;
        }

        public DmCriteria andParentDetailIdNotBetween(Integer value1, Integer value2) {
            addCriterion("PARENT_DETAIL_ID not between ", value1, value2, "PARENT_DETAIL_ID");
            return (DmCriteria) this;
        }
        public DmCriteria andDmTargetTableNameIsNull() {
            addCriterion("DM_TARGET_TABLE_NAME is null");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameIsNotNull() {
            addCriterion("DM_TARGET_TABLE_NAME is not null");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameEqualTo(String value) {
            addCriterion("DM_TARGET_TABLE_NAME =", value, "DM_TARGET_TABLE_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameNotEqualTo(String value) {
            addCriterion("DM_TARGET_TABLE_NAME <>", value, "DM_TARGET_TABLE_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameGreaterThan(String value) {
            addCriterion("DM_TARGET_TABLE_NAME >", value, "DM_TARGET_TABLE_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameGreaterThanOrEqualTo(String value) {
            addCriterion("DM_TARGET_TABLE_NAME >=", value, "DM_TARGET_TABLE_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameLessThan(String value) {
            addCriterion("DM_TARGET_TABLE_NAME <", value, "DM_TARGET_TABLE_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameLessThanOrEqualTo(String value) {
            addCriterion("DM_TARGET_TABLE_NAME <=", value, "DM_TARGET_TABLE_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameLike(String value) {
            addCriterion("DM_TARGET_TABLE_NAME like ", value, "DM_TARGET_TABLE_NAME", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameNotLike(String value) {
            addCriterion("DM_TARGET_TABLE_NAME  not like ", value, "DM_TARGET_TABLE_NAME", 1);
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameLeftLike(String value) {
            addCriterion("DM_TARGET_TABLE_NAME like ", value, "DM_TARGET_TABLE_NAME", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameNotLeftLike(String value) {
            addCriterion("DM_TARGET_TABLE_NAME  not like ", value, "DM_TARGET_TABLE_NAME", 0);
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameRightLike(String value) {
            addCriterion("DM_TARGET_TABLE_NAME like ", value, "DM_TARGET_TABLE_NAME", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameNotRightLike(String value) {
            addCriterion("DM_TARGET_TABLE_NAME  not like ", value, "DM_TARGET_TABLE_NAME", 2);
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameIn(List<String> values) {
            addCriterion("DM_TARGET_TABLE_NAME  in ", values, "DM_TARGET_TABLE_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameNotIn(List<String> values) {
            addCriterion("DM_TARGET_TABLE_NAME not in ", values, "DM_TARGET_TABLE_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameBetween(String value1, String value2) {
            addCriterion("DM_TARGET_TABLE_NAME between ", value1, value2, "DM_TARGET_TABLE_NAME");
            return (DmCriteria) this;
        }

        public DmCriteria andDmTargetTableNameNotBetween(String value1, String value2) {
            addCriterion("DM_TARGET_TABLE_NAME not between ", value1, value2, "DM_TARGET_TABLE_NAME");
            return (DmCriteria) this;
        }

    }

    public static class DmCriteria extends GeneratedCriteria {

        protected DmCriteria() {
            super();
        }
    }

    public static class DmCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected DmCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected DmCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected DmCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected DmCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected DmCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected DmCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}